home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.1 (Developer) [x86]
/
NeXT Step 3.1 Intel dev.cdr.dmg
/
NextDeveloper
/
Examples
/
AppKit
/
Draw
/
graphicsUndo.subproj
/
LineWidthGraphicsChange.m
< prev
next >
Wrap
Text File
|
1992-02-09
|
706b
|
40 lines
#import "drawundo.h"
@interface LineWidthGraphicsChange(PrivateMethods)
- (BOOL)subsumeIdenticalChange:change;
@end
@implementation LineWidthGraphicsChange
- initGraphicView:aGraphicView lineWidth:(float)aWidth
{
[super initGraphicView:aGraphicView];
widthValue = aWidth;
return self;
}
- (const char *)changeName
{
return NXLocalStringFromTable("Operations", "Line Width", NULL, "The operation of changing the width of a line segment.");
}
- changeDetailClass
{
return [LineWidthChangeDetail class];
}
- (float)lineWidth
{
return widthValue;
}
- (BOOL)subsumeIdenticalChange:change
{
widthValue = [(LineWidthGraphicsChange *)change lineWidth];
return YES;
}
@end